xen.git
18 years agoMerge
Tim Deegan [Thu, 5 Apr 2007 14:11:49 +0000 (15:11 +0100)]
Merge

18 years ago[HVM] Save/restore: merge xc_linux_restore and xc_hvm_restore
Tim Deegan [Thu, 5 Apr 2007 14:11:22 +0000 (15:11 +0100)]
[HVM] Save/restore: merge xc_linux_restore and xc_hvm_restore
into one function (and one file) since they share a lot of code
Signed-off-by: Tim Deegan <Tim.Deegan@øensource.com>
--HG--
rename : tools/libxc/xc_linux_restore.c => tools/libxc/xc_domain_restore.c

18 years agoPV-on-HVM: Add new ioreq 'invalidate' for zapping ioemu-dm mapccahe
kfraser@localhost.localdomain [Thu, 5 Apr 2007 13:29:18 +0000 (14:29 +0100)]
PV-on-HVM: Add new ioreq 'invalidate' for zapping ioemu-dm mapccahe
after balloon operations in an HVM guest.

This removes the I/O port hack from the guest OS, and from ioemu.

Also we flush on reservation *increases* as well as decreases. This is
necessary until qemu-dm can demand-fault page mappings into existing
valid buckets.

Signed-off-by: Steven Hand <steven@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoUpdate hgignore list for Module.symvers
kfraser@localhost.localdomain [Thu, 5 Apr 2007 13:02:55 +0000 (14:02 +0100)]
Update hgignore list for Module.symvers

18 years agoPV-on-HVM: update build config overrides.
kfraser@localhost.localdomain [Thu, 5 Apr 2007 12:41:18 +0000 (13:41 +0100)]
PV-on-HVM: update build config overrides.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agolinux/x86-64: fix unwind information
kfraser@localhost.localdomain [Thu, 5 Apr 2007 12:40:43 +0000 (13:40 +0100)]
linux/x86-64: fix unwind information

Mostly adjusting mis-merges dating back to the 2.6.14 merge.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoRemove task.error_code -- it's redundant, as we can use the first element of
Ewan Mellor [Thu, 5 Apr 2007 12:35:54 +0000 (13:35 +0100)]
Remove task.error_code -- it's redundant, as we can use the first element of
task.error_info instead.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoRevert 14730:07d3208c0ca3b6e746745d2bc08f7aa12ed39269.
kfraser@localhost.localdomain [Thu, 5 Apr 2007 10:58:02 +0000 (11:58 +0100)]
Revert 14730:07d3208c0ca3b6e746745d2bc08f7aa12ed39269.
Breaks the x86/64 build with (at least) gcc 3.4.4.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agolinux: simplify and perform checking of multicall status
kfraser@localhost.localdomain [Thu, 5 Apr 2007 09:43:50 +0000 (10:43 +0100)]
linux: simplify and perform checking of multicall status
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoRemove unimplemented host.set_sched_policy.
Ewan Mellor [Wed, 4 Apr 2007 17:50:11 +0000 (18:50 +0100)]
Remove unimplemented host.set_sched_policy.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoExpose the method-listing call as host.list_methods.
Ewan Mellor [Wed, 4 Apr 2007 17:42:20 +0000 (18:42 +0100)]
Expose the method-listing call as host.list_methods.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoRemove docs and bindings for unimplemented VDI.resize and VDI.snapshot.
Ewan Mellor [Wed, 4 Apr 2007 14:00:57 +0000 (15:00 +0100)]
Remove docs and bindings for unimplemented VDI.resize and VDI.snapshot.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoSend INTERNAL_ERROR rather than ERROR_TODO if device creation fails.
Ewan Mellor [Wed, 4 Apr 2007 13:53:52 +0000 (14:53 +0100)]
Send INTERNAL_ERROR rather than ERROR_TODO if device creation fails.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoRemove docs and bindings for unimplemented SR.{create,destroy,clone}.
Ewan Mellor [Wed, 4 Apr 2007 13:49:38 +0000 (14:49 +0100)]
Remove docs and bindings for unimplemented SR.{create,destroy,clone}.
Implement PBD class, matching existing docs and bindings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agolinux: improve x86 page table handling performance
kfraser@localhost.localdomain [Thu, 5 Apr 2007 08:10:33 +0000 (09:10 +0100)]
linux: improve x86 page table handling performance

Where possible,
- use hypercalls instead of writing to read-only pages
- fold TLB flushes into page table update hypercalls
- on PAE, use single-access updates instead of two-access ones

The single change to PAE pte_clear() yields a 25-30% boost for kernel
builds on a 4x2x2 CPUs, 8Gb box; the other changes together yield
improvements of 2-5%.

Also, adjust backward compatibility handling in a few more places.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agolinux/x86-64: fix unwind information
kfraser@localhost.localdomain [Thu, 5 Apr 2007 07:59:12 +0000 (08:59 +0100)]
linux/x86-64: fix unwind information

Mostly adjusting mis-merges dating back to the 2.6.14 merge.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agolinux: make compatibility config options more scalable
kfraser@localhost.localdomain [Thu, 5 Apr 2007 07:58:32 +0000 (08:58 +0100)]
linux: make compatibility config options more scalable
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agohvm: MMIO decoder rename local variable 'diff' to 'result'.
kfraser@localhost.localdomain [Thu, 5 Apr 2007 07:46:54 +0000 (08:46 +0100)]
hvm: MMIO decoder rename local variable 'diff' to 'result'.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm: Fix EFLAGS setting in MMIO decoder/emulator.
kfraser@localhost.localdomain [Thu, 5 Apr 2007 07:44:55 +0000 (08:44 +0100)]
hvm: Fix EFLAGS setting in MMIO decoder/emulator.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
18 years agoxen: No use of packed attribute in public headers.
kfraser@localhost.localdomain [Thu, 5 Apr 2007 07:43:21 +0000 (08:43 +0100)]
xen: No use of packed attribute in public headers.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
18 years agoxen: Fix typo in ns16550 driver.
kfraser@localhost.localdomain [Thu, 5 Apr 2007 07:42:34 +0000 (08:42 +0100)]
xen: Fix typo in ns16550 driver.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
18 years agoFix hvm balloon driver; missed this hunk in last checkin.
Steven Hand [Thu, 5 Apr 2007 07:24:56 +0000 (08:24 +0100)]
Fix hvm balloon driver; missed this hunk in last checkin.

Signed-off-by: Steven Hand <steven@xensource.com>
18 years agoFix comment.
Steven Hand [Thu, 5 Apr 2007 05:51:53 +0000 (06:51 +0100)]
Fix comment.

Signed-off-by: Steven Hand <steven@xensource.com>
18 years agoxen: No need for shadow_drop_references() in remove_page().
Keir Fraser [Wed, 4 Apr 2007 21:47:20 +0000 (22:47 +0100)]
xen: No need for shadow_drop_references() in remove_page().

Because:
    guest_physmap_remove_page()
 -> p2m_remove_page()
 -> set_p2m_entry()
 -> paging_write_p2m_entry()
 -> shadow_write_p2m_entry()

And shadow_write_p2m_entry() calls sh_remove_all_*() fns.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoVarious cleanups and fixes for PV-on-HVM drivers.
Keir Fraser [Wed, 4 Apr 2007 20:49:04 +0000 (21:49 +0100)]
Various cleanups and fixes for PV-on-HVM drivers.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoInitial check-in to support PV balloon driver within HVM guests.
Steven Hand [Wed, 4 Apr 2007 18:59:10 +0000 (19:59 +0100)]
Initial check-in to support PV balloon driver within HVM guests.
Still todo:

 - fix mapcache invalidation (should happen in Xen)
 - support 32-on-64 mode correctly

Signed-off-by: Steven Hand <steven@xensource.com>
18 years agohvm: local_events_need_delivery() should take notice of EFLAGS.IF.
kfraser@localhost.localdomain [Wed, 4 Apr 2007 18:17:39 +0000 (19:17 +0100)]
hvm: local_events_need_delivery() should take notice of EFLAGS.IF.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm: x86 ioemu-dm does not need a memory-size parameter on the command line.
kfraser@localhost.localdomain [Wed, 4 Apr 2007 17:41:42 +0000 (18:41 +0100)]
hvm: x86 ioemu-dm does not need a memory-size parameter on the command line.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm ioemu x86: Avoid assumptions about memory map.
kfraser@localhost.localdomain [Wed, 4 Apr 2007 16:58:06 +0000 (17:58 +0100)]
hvm ioemu x86: Avoid assumptions about memory map.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoClean up save/restore state record handling. No need for Python to
kfraser@localhost.localdomain [Wed, 4 Apr 2007 15:34:56 +0000 (16:34 +0100)]
Clean up save/restore state record handling. No need for Python to
read out the 'p2m size' field. Also that field is not needed at all
for HVM guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm: Lazy memory allocation during HVM restore. General cleanup and
kfraser@localhost.localdomain [Wed, 4 Apr 2007 15:18:28 +0000 (16:18 +0100)]
hvm: Lazy memory allocation during HVM restore. General cleanup and
reduce gross assumptions about memory-map layout.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoRFLAGS is in a known good state at start of day so no need to explicitly initialize.
Ian Campbell [Wed, 4 Apr 2007 14:57:49 +0000 (15:57 +0100)]
RFLAGS is in a known good state at start of day so no need to explicitly initialize.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agohvm svm: Avoid intercepts when accessing a number of architectural MSRs.
kfraser@localhost.localdomain [Wed, 4 Apr 2007 10:57:28 +0000 (11:57 +0100)]
hvm svm: Avoid intercepts when accessing a number of architectural MSRs.

1. Removes intercept of guest-specific MSRs
MSR_IA32_SYSENTER_{CS,ESP,EIP}, MSR_{L,C,}STAR, MSR_SYSCALL_MASK,
MSR_SHADOW_GS_BASE.

2. Removes code to deal with those intercepts, as well as the
FS/GS-base. Since long_mode_do_msr_read now became essentially a
switch of a single case + default, I removed the entire function and
inlined the remaining single case-statement into the original
MSR-access function.

Signed-off-by: Mats Petersson <mats.petersson@amd.com>
18 years agoMerge with xen-ia64-unstable.hg
kfraser@localhost.localdomain [Wed, 4 Apr 2007 10:49:37 +0000 (11:49 +0100)]
Merge with xen-ia64-unstable.hg

18 years agohvm: hvm_io_assist() doesn't preoperly make use of its vcpu
kfraser@localhost.localdomain [Wed, 4 Apr 2007 10:16:13 +0000 (11:16 +0100)]
hvm: hvm_io_assist() doesn't preoperly make use of its vcpu
parameter. Remove it to make it obvious that it can only be called for
the currently-executing vcpu.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxen: Disable foreign-header size check if cross compiling.
kfraser@localhost.localdomain [Wed, 4 Apr 2007 10:13:20 +0000 (11:13 +0100)]
xen: Disable foreign-header size check if cross compiling.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoRemove hvm_drain_io() hypercall, simplify qemu main loop and do not
kfraser@localhost.localdomain [Wed, 4 Apr 2007 09:42:58 +0000 (10:42 +0100)]
Remove hvm_drain_io() hypercall, simplify qemu main loop and do not
pause the domain on reboot (not necessary and defeats new deferred
shutdown logic).
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agomerge with xen-unstable.hg
Alex Williamson [Tue, 3 Apr 2007 19:04:51 +0000 (13:04 -0600)]
merge with xen-unstable.hg

18 years ago[hvm] Keep track of time offset between domain time and dom0 time.
Christian Limpach [Tue, 3 Apr 2007 12:22:37 +0000 (13:22 +0100)]
[hvm] Keep track of time offset between domain time and dom0 time.
On each rtc time update from the hvm domain, we send an ioreq request
to qemu which then updates the time offset xenstore entry.  The time
offset is preserved across reboot and can be set on domain creation
by setting the rtc_timeoffset variable in a config file.

From: Andrei Petrov <andrei.petrov@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agoAdded section on Xend's runtime dependencies.
Ewan Mellor [Tue, 3 Apr 2007 11:22:10 +0000 (12:22 +0100)]
Added section on Xend's runtime dependencies.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoxen: Allow vcpus to defer a shutdown request across critical
kfraser@localhost.localdomain [Tue, 3 Apr 2007 10:44:10 +0000 (11:44 +0100)]
xen: Allow vcpus to defer a shutdown request across critical
asynchronous operations (in particular, hvm ioreq requests).
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoRemove unused import.
Ewan Mellor [Tue, 3 Apr 2007 09:36:31 +0000 (10:36 +0100)]
Remove unused import.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix "xm migrate" hang on failure.
kfraser@localhost.localdomain [Tue, 3 Apr 2007 08:03:51 +0000 (09:03 +0100)]
Fix "xm migrate" hang on failure.

If a domain fails to restore, report back an error and close the
connection. This still leaves a confusing error from 'xm migrate' in
many cases, but it's much better than just sitting there.

Signed-off-by: John Levon <john.levon@sun.com>
18 years agoFix the ia64 build after save/restore cleanups.
kfraser@localhost.localdomain [Tue, 3 Apr 2007 08:03:03 +0000 (09:03 +0100)]
Fix the ia64 build after save/restore cleanups.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years agoxend: Map re.compile on hosts_allow for XMLRPCServer.
kfraser@localhost.localdomain [Mon, 2 Apr 2007 16:34:00 +0000 (17:34 +0100)]
xend: Map re.compile on hosts_allow for XMLRPCServer.

Changeset 14601 removed a re.compile() map on hosts_allow,
hence breaking the tcp xmlrpc api ('str' has no attribute match
in xend-debug.log).

From: Pascal Bouchareine <pascal@gandi.net>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm vmx: VMX MSR bitmap format and size is VMX-specific, so move its
kfraser@localhost.localdomain [Mon, 2 Apr 2007 15:59:00 +0000 (16:59 +0100)]
hvm vmx: VMX MSR bitmap format and size is VMX-specific, so move its
allocation and initialisation into VMX-specific code.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm svm: Clear FS/GS base MSR intercepts.
kfraser@localhost.localdomain [Mon, 2 Apr 2007 15:51:52 +0000 (16:51 +0100)]
hvm svm: Clear FS/GS base MSR intercepts.
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
18 years agoSome save/restore cleanups.
Steven Hand [Mon, 2 Apr 2007 15:46:52 +0000 (16:46 +0100)]
Some save/restore cleanups.

Signed-off-by: Steven Hand <steven@xensource.com>
18 years agoxen: Remove two incorrect assertions.
kfraser@localhost.localdomain [Mon, 2 Apr 2007 15:26:23 +0000 (16:26 +0100)]
xen: Remove two incorrect assertions.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxen: Fix x86/64 build.
kfraser@localhost.localdomain [Mon, 2 Apr 2007 14:29:42 +0000 (15:29 +0100)]
xen: Fix x86/64 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxentop: Fix memory leak.
kfraser@localhost.localdomain [Mon, 2 Apr 2007 12:08:05 +0000 (13:08 +0100)]
xentop: Fix memory leak.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
18 years agohvm hap: Add hap option to user's manual.
kfraser@localhost.localdomain [Mon, 2 Apr 2007 12:06:48 +0000 (13:06 +0100)]
hvm hap: Add hap option to user's manual.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
18 years agohvm hap: P2M page table cleanup and bug fix.
kfraser@localhost.localdomain [Mon, 2 Apr 2007 12:05:59 +0000 (13:05 +0100)]
hvm hap: P2M page table cleanup and bug fix.

Force P2M top-level page table to be allocated below 4GB
memory space when Xen is running under PAE mode. Also remove
hap.p2m_freelists because hap mode does not have P2M batch
allocation. The backpointer parameter of hap_alloc() function is
removed since this parameter is unused.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
18 years agoxen: Extra %esp tracing on double fault.
kfraser@localhost.localdomain [Mon, 2 Apr 2007 10:50:06 +0000 (11:50 +0100)]
xen: Extra %esp tracing on double fault.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agolinux: Remove a few redundant config options. Build util.c for ia64
Keir Fraser [Sat, 31 Mar 2007 18:02:09 +0000 (19:02 +0100)]
linux: Remove a few redundant config options. Build util.c for ia64
and ifdef out a couple of functions that are not yet fully generic.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agolinux: Avoid use of ptep_get_and_clear_full name as it's a macro on
Keir Fraser [Sat, 31 Mar 2007 16:22:46 +0000 (17:22 +0100)]
linux: Avoid use of ptep_get_and_clear_full name as it's a macro on
some architectures.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agolibxc: Fix the build with some versions of gcc.
Keir Fraser [Sat, 31 Mar 2007 15:52:36 +0000 (16:52 +0100)]
libxc: Fix the build with some versions of gcc.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agolinux gntdev: Mark x86-specific code as such with ifdef.
Keir Fraser [Sat, 31 Mar 2007 15:39:14 +0000 (16:39 +0100)]
linux gntdev: Mark x86-specific code as such with ifdef.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxen x86: Fix double-fault handler stack overflow.
Keir Fraser [Sat, 31 Mar 2007 15:35:02 +0000 (16:35 +0100)]
xen x86: Fix double-fault handler stack overflow.
 1. Shrink stack frame for __print_symbol() by introducing a lock and
 making the big arrays static.
 2. Double the size of the double-fault stack.

Also fix the show_stack_overflow function.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxend: Implement auto-ballooning for Solaris.
Keir Fraser [Sat, 31 Mar 2007 13:05:57 +0000 (14:05 +0100)]
xend: Implement auto-ballooning for Solaris.

/proc/xen/balloon is Linux-specific. Implement a Solaris backend
too. Also fix the FMRI for xend.

Signed-off-by: Ryan Scott <ryan.scott@sun.com>
18 years agolibxc: User-space grant table device.
Keir Fraser [Sat, 31 Mar 2007 13:03:17 +0000 (14:03 +0100)]
libxc: User-space grant table device.

Changes to libxc to enable easy access to the grant table device.

Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
18 years agolinux: User-space grant table device.
Keir Fraser [Sat, 31 Mar 2007 12:53:24 +0000 (13:53 +0100)]
linux: User-space grant table device.

A character device for accessing (in user-space) pages that have been
granted by other domains.

Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
Fix ioctl interface to be 32/64-bit invariant. Move xen_class
mechanism to common util.c.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agolinux: Add a hook before a page table entry is cleared, for use with
Keir Fraser [Sat, 31 Mar 2007 11:42:02 +0000 (12:42 +0100)]
linux: Add a hook before a page table entry is cleared, for use with
the grant-table device.

Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
18 years agoxm: Fix an indentation bug.
Keir Fraser [Sat, 31 Mar 2007 11:26:04 +0000 (12:26 +0100)]
xm: Fix an indentation bug.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoblktap: Fix qcow2raw.
Keir Fraser [Sat, 31 Mar 2007 11:24:55 +0000 (12:24 +0100)]
blktap: Fix qcow2raw.

qcow2raw would hang the conversion just short of 100%, because the
final write queue was never being submitted.  If a blktap drivers read
synchronously, then "submit_events" and "complete" variables are
checked before getting set, so the fact that reads have finished is
not noticed, so the final write queue was never submitted.

Note that I have also removed the variables write_complete and
read_complete.  They were unused, and they were also not set correctly
in the synchronous case.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
18 years agoxen: Fix numa=on boot.
Keir Fraser [Sat, 31 Mar 2007 11:20:31 +0000 (12:20 +0100)]
xen: Fix numa=on boot.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agomerge with xen-unstable.hg
Alex Williamson [Fri, 30 Mar 2007 23:18:42 +0000 (17:18 -0600)]
merge with xen-unstable.hg

18 years agohvm svm: Some code cleanups.
Keir Fraser [Fri, 30 Mar 2007 18:02:40 +0000 (19:02 +0100)]
hvm svm: Some code cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm vmx: Fix MSR-intercept bitmap initialisation (two bitmap offsets
Keir Fraser [Fri, 30 Mar 2007 17:42:49 +0000 (18:42 +0100)]
hvm vmx: Fix MSR-intercept bitmap initialisation (two bitmap offsets
are documented the wrong way round in the current PRM Vol.3). Clear
bits in the bitmap only /after/ it has been initialised to
all-1s. Clean up start-of-day info printing.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxen: Fix domain shutdown to synchronously stop domain execution.
Keir Fraser [Fri, 30 Mar 2007 17:39:34 +0000 (18:39 +0100)]
xen: Fix domain shutdown to synchronously stop domain execution.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[LINUX] Explcitly include linux/mutex.h in files which use mutexes, rather then
Ian Campbell [Fri, 30 Mar 2007 16:33:31 +0000 (17:33 +0100)]
[LINUX] Explcitly include linux/mutex.h in files which use mutexes, rather then
relying on an include via some other header.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoAdd support for HVM domains to new xm XenAPI create code
Tom Wilkie [Fri, 30 Mar 2007 16:28:54 +0000 (17:28 +0100)]
Add support for HVM domains to new xm XenAPI create code

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years ago[IA64] Avoid insertion of pte.ma=001 into VHPT
Alex Williamson [Fri, 30 Mar 2007 16:27:15 +0000 (10:27 -0600)]
[IA64] Avoid insertion of pte.ma=001 into VHPT

A TLB entry shouldn't be inserted into VHPT when its memory
attribute field is 001 "software reserved".

Without this patch, a TLB fault expected by a guest OS is missing.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
18 years ago[IA64] Trigger memory scrub
Alex Williamson [Fri, 30 Mar 2007 16:25:16 +0000 (10:25 -0600)]
[IA64] Trigger memory scrub

Continuous domain creation can sometimes fail by running out of
scrubbed pages.  Trigger it similar to x86.

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
18 years ago[IA64] Cleanup vcpu *d
Alex Williamson [Fri, 30 Mar 2007 16:21:17 +0000 (10:21 -0600)]
[IA64] Cleanup vcpu *d

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
18 years agosvm: Improve emulation of SMSW instruction for memory operands.
Keir Fraser [Fri, 30 Mar 2007 16:13:50 +0000 (17:13 +0100)]
svm: Improve emulation of SMSW instruction for memory operands.
From: Trolle Selander <trolle.selander@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm: Must increment RIP on INT3 instruction in SVM.
Keir Fraser [Fri, 30 Mar 2007 16:02:46 +0000 (17:02 +0100)]
hvm: Must increment RIP on INT3 instruction in SVM.
Also tighten up checking of valid exception intercepts -- we should
not vmexit on an exception we have not registered an interest in.
Signed-off-by Tom Woller <thomas.woller@amd.com>
Signed-off-by Thomas Friebel <thomas.friebel@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[LINUX] Make sure to initialiase the xen features bitmap before first use on x86_64.
Ian Campbell [Fri, 30 Mar 2007 13:13:53 +0000 (14:13 +0100)]
[LINUX] Make sure to initialiase the xen features bitmap before first use on x86_64.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoAdd config files for testing xm via XendAPI
Tom Wilkie [Fri, 30 Mar 2007 10:55:34 +0000 (11:55 +0100)]
Add config files for testing xm via XendAPI

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Tue, 27 Mar 2007 18:21:48 +0000 (12:21 -0600)]
merge with xen-unstable.hg

18 years ago[IA64] Remove debugger calls from panic_domain()
awilliam@xenbuild2.aw [Tue, 27 Mar 2007 15:07:51 +0000 (09:07 -0600)]
[IA64] Remove debugger calls from panic_domain()

These hang when compiled with crash_debug=y

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
18 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Mon, 26 Mar 2007 16:10:31 +0000 (10:10 -0600)]
merge with xen-unstable.hg

18 years ago[IA64] Remove P2M workaround
awilliam@xenbuild2.aw [Mon, 26 Mar 2007 15:17:25 +0000 (09:17 -0600)]
[IA64] Remove P2M workaround

The ia64 p2m semantic is now fixed. remove unnecessary work around patch.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
18 years ago[IA64] Make P2M semantics match x86
awilliam@xenbuild2.aw [Mon, 26 Mar 2007 15:15:17 +0000 (09:15 -0600)]
[IA64] Make P2M semantics match x86

So far the ia64 p2m has the semantic similar to
(the x86 p2m) + (page reference count).
But the differece from the x86 p2m have caused the breakage and work around.
This patch make the ia64 p2m semantic same as x86 to solve it.
- get_page() only for grant table page mapping and foreign domain page
  mapping.
- put_page() only for those pages.
- guest_physmap_remove_page() doesn't touch PGC_allocated bit.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
18 years agoThis patch replaces tab with 4 whitespaces in xensec_gen/main.py.
Ewan Mellor [Mon, 26 Mar 2007 13:10:19 +0000 (14:10 +0100)]
This patch replaces tab with 4 whitespaces in xensec_gen/main.py.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoDon't set memory_dynamic_max when xm mem-set is called. Save the VM
Ewan Mellor [Mon, 26 Mar 2007 13:09:36 +0000 (14:09 +0100)]
Don't set memory_dynamic_max when xm mem-set is called.  Save the VM
configuration unconditionally when either the max or the target memory values
are set.

Thanks to Masaki Kanno for pointing out the first problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix xm mem-set on non-running domains. Closes bug #934.
Ewan Mellor [Mon, 26 Mar 2007 12:59:36 +0000 (13:59 +0100)]
Fix xm mem-set on non-running domains.  Closes bug #934.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoIgnore .pc (quilt patch queues).
Ewan Mellor [Mon, 26 Mar 2007 12:57:43 +0000 (13:57 +0100)]
Ignore .pc (quilt patch queues).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix the xm mem-max command. Closes bug #933.
Ewan Mellor [Mon, 26 Mar 2007 12:50:33 +0000 (13:50 +0100)]
Fix the xm mem-max command.  Closes bug #933.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoMake 05_block_attach_and_dettach_device_repeatedly_pos pass on xm via XenAPI
Tom Wilkie [Mon, 26 Mar 2007 12:46:07 +0000 (13:46 +0100)]
Make 05_block_attach_and_dettach_device_repeatedly_pos pass on xm via XenAPI

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years agoFix vbd_create etc, add devices to paused domains
Tom Wilkie [Mon, 26 Mar 2007 12:29:27 +0000 (13:29 +0100)]
Fix vbd_create etc, add devices to paused domains

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

18 years ago[HVM] Fix comments
Tim Deegan [Mon, 26 Mar 2007 09:16:04 +0000 (09:16 +0000)]
[HVM] Fix comments
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[HVM] Intercept ACPI pm-timer registers
Tim Deegan [Mon, 26 Mar 2007 09:13:03 +0000 (09:13 +0000)]
[HVM] Intercept ACPI pm-timer registers
Bring the PM1a_STS and PM1a_EN registers into Xen and use them to deliver
SCI to the guest before it sees the MSB of the pm-timer change.
Also correct some of the semantics of the registers.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoFix VM.resume/suspend docs.
Ewan Mellor [Mon, 26 Mar 2007 00:13:16 +0000 (01:13 +0100)]
Fix VM.resume/suspend docs.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoMark host. and PIF.metrics fields as ROrun, to match VIF, VM, and VBD.
Ewan Mellor [Mon, 26 Mar 2007 00:02:18 +0000 (01:02 +0100)]
Mark host. and PIF.metrics fields as ROrun, to match VIF, VM, and VBD.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoCreate the new VM with the default crash behaviour set.
Ewan Mellor [Sun, 25 Mar 2007 23:40:34 +0000 (00:40 +0100)]
Create the new VM with the default crash behaviour set.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoReplace tabs with spaces.
Ewan Mellor [Sun, 25 Mar 2007 23:30:10 +0000 (00:30 +0100)]
Replace tabs with spaces.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdded I/O debugging mode.
Ewan Mellor [Sun, 25 Mar 2007 23:17:17 +0000 (00:17 +0100)]
Added I/O debugging mode.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix memory values -- they should be in bytes.
Ewan Mellor [Sun, 25 Mar 2007 23:16:40 +0000 (00:16 +0100)]
Fix memory values -- they should be in bytes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoTidy up use of stdout vs stderr.
Ewan Mellor [Sun, 25 Mar 2007 23:12:19 +0000 (00:12 +0100)]
Tidy up use of stdout vs stderr.

Signed-off-by: Ewan Mellor <ewan@xensource.com>